package com.example.rabbit.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Author:MuJiuTian
 * @Description: 所有的队列统一配置 ,可以不配
 * @Date: Created in 下午11:36 2019/8/19
 */
/*@Configuration
@Component*/
public class MyQueueConfig {

    @Bean
    public Queue myQueue() {
        return new Queue("hello_queue");
    }
    @Bean
    public Queue ack_queue() {
        return new Queue("ack_queue");
    }

    @Bean
    public Queue param_queue() {
        return new Queue("param_queue");
    }
    @Bean
    public Queue loginfo() {
        return new Queue("log.info");
    }
    @Bean
    public Queue logerror() {
        return new Queue("log.error");
    }
    @Bean
    public Queue logall() {
        return new Queue("log.all");
    }
}
